<template>
	<div>
		<div>来源：{{posterId?'线上海报':'线下活动码'}}</div>
		
		<template v-if="posterId">
			<div>海报Id: {{posterId}}</div>
			<div>分享人Id：{{userId}}</div>
		</template>
		<div v-else>活动码Id: {{activityQrCodeId}}</div>
		
	</div>
</template>

<script>
var vm;
export default {
	data : function() {
		return {
			activityQrCodeId : null,
			posterId : null,
			userId : null
		}
	},
	created : function() {
		vm = this;
		var query = vm.$route.query;
		//来自活动码
		vm.activityQrCodeId = query.activityQrCodeId;
		//来自海报
		vm.posterId = query.posterId;
		vm.userId = query.userId;
		
		if(vm.activityQrCodeId) {
			api.activeCodeSweep({activityQrCodeId : vm.activityQrCodeId});
		}
	}
}
</script>

<style>
</style>